# 定义集合，集合无序
set1 = {12,34,53}
set2 = set()
set3 = {"12","2421","ddas"}
print(set1,set2,set3)
# 新增
set1.add(000)
# 修改
set1.update({12,123,12521})
print(set1)
set3.remove("12")
print(set3)
# 列表去重，先转换成集合，再转换为列表
alist = [2,34,532,2,54,32,24,34]
# 转换为集合
seta = set(alist)
# 转换为列表
blist  = list(seta)
print(blist)